package com.yueshang.neuron;

import org.mybatis.spring.annotation.MapperScan;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.freemarker.FreeMarkerAutoConfiguration;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * SpringBoot方式启动类
 *
 * @author shililu
 * @Date 2017/5/21 12:06
 */
@SpringBootApplication
@EnableTransactionManagement
@EnableAutoConfiguration(exclude = { FreeMarkerAutoConfiguration.class })
@ComponentScan(basePackages = {
        "com.yueshang.framework","com.yueshang.neuron"})
@MapperScan("com.yueshang.neuron.modular.**.mapper")
public class NeuronApplication {

    private final static Logger logger = LoggerFactory.getLogger(NeuronApplication.class);

    public static void main(String[] args) {
        SpringApplication.run(NeuronApplication.class, args);
        logger.info("NeuronApplication is success!");

    }
}